﻿@namespace BlazorFluentUI
@inherits FluentUIComponentBase

<LocalCS @bind-Rules="@DialogLocalRules" />

<Modal ClassName=@($"ms-Dialog {this.ClassName}")
       Style=@Style
       ElementToFocusOnDismiss=@ElementToFocusOnDismiss
       FirstFocusableSelector=@FirstFocusableSelector
       ForceFocusInsideTrap=@ForceFocusInsideTrap
       IgnoreExternalFocusing=@IgnoreExternalFocusing
       IsClickableOutsideFocusTrap=@IsClickableOutsideFocusTrap
       IsDarkOverlay=@IsDarkOverlay
       IsBlocking=@IsBlocking
       IsOpen=IsOpen
       ContainerClass="@DialogMainRule.Selector?.SelectorName"
       OnDismiss=@OnDismiss
       SubtitleAriaId=@(AriaDescribedBy != null ? AriaDescribedBy : SubText)
       TitleAriaId=@(AriaLabelledBy != null ? AriaLabelledBy : Title)>
    <DialogContent TitleId=@DefaultTitleTextId
                   SubTextId=@DefaultSubTextId
                   Title=@Title
                   SubText=@SubText
                   ShowCloseButton=@(!IsBlocking)
                   CloseButtonAriaLabel=@CloseButtonAriaLabel
                   DialogType=@DialogType
                   OnDismiss=@OnDismiss
                   ClassName=@ContentClass
                   ContentTemplate=@(ChildContent!)
                   FooterTemplate=@(FooterTemplate!)
                   DraggableHeaderClassName=@DraggableHeaderClassName
                   IsMultiline=@IsMultiline />

</Modal>